angular.module("eve", [
    "eve.controller",
    "ngRoute",
    "rzModule"
    ])
.config(["$routeProvider", function ($routeProvider) {
    $routeProvider.when("/dashboard", {
      templateUrl: "tpl/dashboard.tpl.html", 
      controller: "DashboardCtrl"
    });  

    $routeProvider.when("/order", {
      templateUrl: "tpl/order-list.tpl.html",
      controller: "OrderListCtrl"
    });  


    $routeProvider.when("/order/create/:cate", {
      templateUrl: "tpl/order-create.tpl.html",   
      controller: "OrderCreateCtrl"
    });

    $routeProvider.when("/account", {
      templateUrl: "tpl/account.tpl.html",
      controller: "AccountCtrl"     
    });

    $routeProvider.when("/feedback", {
      templateUrl: "tpl/feedback.tpl.html",
      controller: "FeedbackCtrl"        
    });
                 
    $routeProvider.otherwise({redirectTo: "/dashboard"});
}]);
